#ifndef MDS_WTIME_INCLUDED
#define MDS_WTIME_INCLUDED 1


#include "../types.h"

typedef struct {
#if defined(_WIN32)
	int64_t quad;
	double  freq;
#else
	int64_t data[2];
#endif
} mds_wtime;

void    mds_wtime_init( mds_wtime *wtime );
void    mds_wtime_start( mds_wtime *wtime);
double  mds_wtime_query( mds_wtime *wtime);
int64_t mds_wtime_ticks(void);

typedef struct 
{
	double d;
	double h;
	double m;
	double s;
} mds_eta;

void mds_eta_compute( mds_eta *eta, double s );


#endif
